/*
 Navicat Premium Data Transfer

 Source Server         : 华为云
 Source Server Type    : MySQL
 Source Server Version : 80032
 Source Host           : 123.60.140.66:3306
 Source Schema         : yuruo_auth

 Target Server Type    : MySQL
 Target Server Version : 80032
 File Encoding         : 65001

 Date: 03/08/2023 16:31:00
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for oauth_client_details
-- ----------------------------
DROP TABLE IF EXISTS `oauth_client_details`;
CREATE TABLE `oauth_client_details` (
  `client_id` varchar(256) NOT NULL,
  `client_name` varchar(255) DEFAULT NULL,
  `resource_ids` varchar(256) DEFAULT NULL,
  `client_secret` varchar(256) DEFAULT NULL,
  `scope` varchar(256) DEFAULT NULL,
  `authorized_grant_types` varchar(256) DEFAULT NULL,
  `web_server_redirect_uri` varchar(256) DEFAULT NULL,
  `authorities` varchar(256) DEFAULT NULL,
  `access_token_validity` int DEFAULT NULL,
  `refresh_token_validity` int DEFAULT NULL,
  `additional_information` varchar(4096) DEFAULT NULL,
  `autoapprove` varchar(256) DEFAULT NULL,
  PRIMARY KEY (`client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Records of oauth_client_details
-- ----------------------------
BEGIN;
INSERT INTO `oauth_client_details` (`client_id`, `client_name`, `resource_ids`, `client_secret`, `scope`, `authorized_grant_types`, `web_server_redirect_uri`, `authorities`, `access_token_validity`, `refresh_token_validity`, `additional_information`, `autoapprove`) VALUES ('c1', '语若商城', 'webapp', '$2a$10$iYKGHsCpauqm7lttlKC7QeEdHR7aiU.H7o/Wn2wP1PDTEfWh8L7Zm', 'ROLE_ALL', 'authorization_code,refresh_token', 'http://8.130.125.254/pages/authentication/authentication', '', 72000, 252000, NULL, 'false');
INSERT INTO `oauth_client_details` (`client_id`, `client_name`, `resource_ids`, `client_secret`, `scope`, `authorized_grant_types`, `web_server_redirect_uri`, `authorities`, `access_token_validity`, `refresh_token_validity`, `additional_information`, `autoapprove`) VALUES ('c2', '语若商城后台管理系统', 'admin', '$2a$10$iYKGHsCpauqm7lttlKC7QeEdHR7aiU.H7o/Wn2wP1PDTEfWh8L7Zm', 'ROLE_ALL', 'authorization_code,refresh_token', 'http://8.130.125.254:81/login', NULL, 72000, 252000, NULL, 'true');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
